home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / sspr2.z / sspr2
Encoding:
Text File  |  2002-10-03  |  10.9 KB  |  265 lines

  1.  
  2.  
  3.  
  4. SSSSSSSSPPPPRRRR2222((((3333SSSS))))                                                            SSSSSSSSPPPPRRRR2222((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SSSSSSSSPPPPRRRR2222, DDDDSSSSPPPPRRRR2222 - Performs symmetric rank 2 update of a real symmetric
  10.      packed matrix
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      Single precision
  14.  
  15.           Fortran:
  16.                CCCCAAAALLLLLLLL SSSSSSSSPPPPRRRR2222 ((((_u_p_l_o,,,, _n,,,, _a_l_p_h_a,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y,,,, _a_p))))
  17.  
  18.           C/C++:
  19.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  20.                vvvvooooiiiidddd sssssssspppprrrr2222 ((((cccchhhhaaaarrrr _u_p_l_o,,,, ffffllllooooaaaatttt *_n,,,, ffffllllooooaaaatttt _a_l_p_h_a,,,, ffffllllooooaaaatttt *_x,,,, iiiinnnntttt
  21.                _i_n_c_x,,,, ffffllllooooaaaatttt *_y,,,, iiiinnnntttt _i_n_c_y,,,, ffffllllooooaaaatttt *_a_p))));;;;
  22.  
  23.      Double precision
  24.  
  25.           Fortran:
  26.                CCCCAAAALLLLLLLL DDDDSSSSPPPPRRRR2222 ((((_u_p_l_o,,,, _n,,,, _a_l_p_h_a,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y,,,, _a_p))))
  27.  
  28.           C/C++:
  29.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  30.                vvvvooooiiiidddd ddddsssspppprrrr2222 ((((cccchhhhaaaarrrr _u_p_l_o,,,, ddddoooouuuubbbblllleeee *_n,,,, ddddoooouuuubbbblllleeee _a_l_p_h_a,,,, ddddoooouuuubbbblllleeee *_x,,,, iiiinnnntttt
  31.                _i_n_c_x,,,, ddddoooouuuubbbblllleeee *_y,,,, iiiinnnntttt _i_n_c_y,,,, ddddoooouuuubbbblllleeee *_a_p))));;;;
  32.  
  33. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  34.      These routines are part of the SCSL Scientific Library and can be loaded
  35.      using either the ----llllssssccccssss or the ----llllssssccccssss____mmmmpppp option.  The ----llllssssccccssss____mmmmpppp option
  36.      directs the linker to use the multi-processor version of the library.
  37.  
  38.      When linking to SCSL with ----llllssssccccssss or ----llllssssccccssss____mmmmpppp, the default integer size is
  39.      4 bytes (32 bits). Another version of SCSL is available in which integers
  40.      are 8 bytes (64 bits).  This version allows the user access to larger
  41.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  42.      by using the ----llllssssccccssss____iiii8888 option or the ----llllssssccccssss____iiii8888____mmmmpppp option. A program may use
  43.      only one of the two versions; 4-byte integer and 8-byte integer library
  44.      calls cannot be mixed.
  45.  
  46.      The C and C++ prototypes shown above are appropriate for the 4-byte
  47.      integer version of SCSL. When using the 8-byte integer version, the
  48.      variables of type iiiinnnntttt become lllloooonnnngggg lllloooonnnngggg and the <<<<ssssccccssssllll____bbbbllllaaaassss____iiii8888....hhhh>>>> header
  49.      file should be included.
  50.  
  51. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  52.      These routines perform the following symmetric rank 2 operation:
  53.  
  54.           _A <- _a_l_p_h_a _x_y_T +  _a_l_p_h_a _y_x_T +  _A
  55.  
  56.      where _x_T  is the transpose of _x, _y_T  is the transpose of _y, _a_l_p_h_a is a
  57.      real scalar, _x and _y are _n-element vectors, and _A is an _n-by-_n symmetric
  58.      packed matrix.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSSSSSPPPPRRRR2222((((3333SSSS))))                                                            SSSSSSSSPPPPRRRR2222((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      See the NOTES section of this man page for information about the
  75.      interpretation of the data types described in the following arguments.
  76.  
  77.      This routine has the following arguments:
  78.  
  79.      _u_p_l_o      Character.  (input)
  80.                Specifies whether the upper or lower triangular part of matrix
  81.                _A is packed into the array argument _a_p, as follows:
  82.  
  83.                _u_p_l_o= 'U' or 'u':  the upper triangular part of _A is being
  84.                supplied in the argument _a_p.
  85.                _u_p_l_o= 'L' or 'l':  the lower triangular part of _A is being
  86.                supplied in the argument _a_p.
  87.  
  88.      _n         Integer.  (input)
  89.                Specifies the order of matrix _A.  _n >= 0.
  90.  
  91.      _a_l_p_h_a     Scalar alpha.  (input)
  92.                SSSSSSSSPPPPRRRR2222: Single precision.
  93.                DDDDSSSSPPPPRRRR2222: Double precision.
  94.  
  95.      _x         Array of dimension 1+(_n-1) * |_i_n_c_x|.  (input)
  96.                SSSSSSSSPPPPRRRR2222: Single precision array.
  97.                DDDDSSSSPPPPRRRR2222: Double precision array.
  98.  
  99.      _i_n_c_x      Integer.  (input)
  100.                Increment for the elements of _x.  _i_n_c_x must not be 0.
  101.  
  102.      _y         Array of dimension 1+(_n-1) * |_i_n_c_y|.  (input)
  103.                SSSSSSSSPPPPRRRR2222: Single precision array.
  104.                DDDDSSSSPPPPRRRR2222: Double precision array.
  105.  
  106.      _i_n_c_y      Integer.  (input)
  107.                Increment for the elements of _y.  _i_n_c_y must not be 0.
  108.  
  109.      _a_p        Array of dimension (_n(_n+1))/2 .  (input and output)
  110.                SSSSSSSSPPPPRRRR2222: Single precision array.
  111.                DDDDSSSSPPPPRRRR2222: Double precision array.
  112.  
  113.                Before entry with _u_p_l_o = 'U' or 'u', array _a_p must contain the
  114.                upper triangular part of the symmetric matrix packed
  115.                sequentially, column-by-column, so that _a_p(1) contains _A(1,1),
  116.                _a_p(2) contains _A(1,2), _a_p(3) contains _A(2,2), and so on.  On
  117.                exit, the upper triangular part of the updated matrix
  118.                overwrites array _a_p.
  119.  
  120.                Before entry with _u_p_l_o = 'L' or 'l', array _a_p must contain the
  121.                lower triangular part of the symmetric matrix packed
  122.                sequentially, column-by-column, so that _a_p(1) contains _A(1,1),
  123.                _a_p(2) contains _A(2,1), _a_p(3) contains _A(3,1), and so on.  On
  124.                exit, the lower triangular part of the updated matrix
  125.                overwrites array _a_p.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSSSSSPPPPRRRR2222((((3333SSSS))))                                                            SSSSSSSSPPPPRRRR2222((((3333SSSS))))
  137.  
  138.  
  139.  
  140. NNNNOOOOTTTTEEEESSSS
  141.      SSSSSSSSPPPPRRRR2222/DDDDSSSSPPPPRRRR2222 is a Level 2 Basic Linear Algebra Subprogram (Level 2 BLAS).
  142.  
  143.      When working backward (_i_n_c_x < 0 or _i_n_c_y < 0), this routine starts at the
  144.      end of the vector and moves backward, as follows:
  145.  
  146.           _x(1-_i_n_c_x * (_n-1)), _x(1-_i_n_c_x * (_n-2)) , ..., _x(1)
  147.  
  148.           _y(1-_i_n_c_y * (_n-1)), _y(1-_i_n_c_y * (_n-2)) , ..., _y(1)
  149.  
  150.  
  151.    DDDDaaaattttaaaa TTTTyyyyppppeeeessss
  152.      The following data types are described in this documentation:
  153.  
  154.           TTTTeeeerrrrmmmm UUUUsssseeeedddd                     DDDDaaaattttaaaa ttttyyyyppppeeee
  155.  
  156.      Fortran:
  157.  
  158.           Array dimensioned _n           xxxx((((nnnn))))
  159.  
  160.           Character                     CCCCHHHHAAAARRRRAAAACCCCTTTTEEEERRRR
  161.  
  162.           Integer                       IIIINNNNTTTTEEEEGGGGEEEERRRR (IIIINNNNTTTTEEEEGGGGEEEERRRR****8888 for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  163.  
  164.           Single precision              RRRREEEEAAAALLLL
  165.  
  166.           Double precision              DDDDOOOOUUUUBBBBLLLLEEEE PPPPRRRREEEECCCCIIIISSSSIIIIOOOONNNN
  167.  
  168.      C/C++:
  169.  
  170.           Array dimensioned _n           xxxx[[[[_n]]]]
  171.  
  172.           Character                     cccchhhhaaaarrrr
  173.  
  174.           Integer                       iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  175.  
  176.           Single precision              ffffllllooooaaaatttt
  177.  
  178.           Double precision              ddddoooouuuubbbblllleeee
  179.  
  180.      Note that you can explicitly declare multidimensional C/C++ arrays
  181.      provided that the array dimensions are swapped with respect to the
  182.      Fortran declaration (e.g., xxxx[[[[nnnn]]]][[[[mmmm]]]] in C/C++ versus xxxx((((mmmm,,,,nnnn)))) in Fortran).
  183.      To avoid a compiler type mismatch error in C++ (or a compiler warning
  184.      message in C), however, the array should be cast to a pointer of the
  185.      appropriate type when passed as an argument to a SCSL routine.
  186.  
  187. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  188.      IIIINNNNTTTTRRRROOOO____SSSSCCCCSSSSLLLL(3S), IIIINNNNTTTTRRRROOOO____BBBBLLLLAAAASSSS2222(3S), CCCCHHHHPPPPRRRR2222(3S)
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. SSSSSSSSPPPPRRRR2222((((3333SSSS))))                                                            SSSSSSSSPPPPRRRR2222((((3333SSSS))))
  203.  
  204.  
  205.  
  206.      IIIINNNNTTTTRRRROOOO____CCCCBBBBLLLLAAAASSSS(3S) for information about using the C interface to Fortran 77
  207.      Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic
  208.      Linear Algebra Subprograms Technical Forum.
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.                                                                         PPPPaaaaggggeeee 4444
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.